import { defineConfig } from 'vite';
import uni from '@dcloudio/vite-plugin-uni';

export default defineConfig({
	plugins: [uni()],
	server: {
		host: '0.0.0.0',
		port: 3000,
		proxy: {
			 '/conner': {
			        target: 'https://api.it120.cc',
			        changeOrigin: true,
			        rewrite: (path) => path.replace(/^\/conner/, '/conner'),
			      },
		}
	}
});